#include<cryptlib.h>
#include<iostream>
using namespace std;
using namespace CryptoPP;
int main()
{
	if (LibraryVersion() != HeaderVersion())
	{
		cout << "Potential version mismatch." << endl;
		const int lmaj = (LibraryVersion() / 100U) % 10;
		const int lmin = (LibraryVersion() / 10U) % 10;
		const int hmaj = (HeaderVersion() / 100U) % 10;
		const int hmin = (HeaderVersion() / 10U) % 10;
		if (lmaj != hmaj)
			cout << "Major version mismatch." << endl;
		else if (lmin != hmin)
			cout << "Minor version mismatch." << endl;
	}
	else
	{
		cout << LibraryVersion() << endl;
		cout << "Major and minor version  both match." << endl;
	}
	return 0;
}
